#ifndef TAIL_H_
#define TAIL_H_

#include "util.h"
#include <SFML/Graphics.hpp>
using namespace sf;

class Tail {
private:
	Shape shape;
	Vector2f lastPoint;
	Vector2f rightBorder;
	Vector2f leftBorder;
	Vector2f lastlastPoint;
	Vector2f lastrightBorder;
	Vector2f lastleftBorder;
public:
	void initialize(Vector2f piece, float size, Vector2f direction);
	Shape getNewTailPiece();
	void addTailPiece(Vector2f piece, float size, Vector2f direction);
};

#endif /* TAIL_H_ */
